package ooday01;

public class Student {
    String name; //成员变量(整个类中)
    int age;
    String address;
    //局部变量(当前方法中)
    Student(String name,int age,String address){
        this.name = name;
        this.address = address;
    }


    void study(){
            System.out.println(this.name+"在学习...");
        }
    void sayHi(){
        System.out.println("大家好，我叫"+name+"，今年"+age+"岁了，家住"+address);
    }

}


